package ar.com.spsolutions.splibrary.repositories;

import ar.com.spsolutions.splibrary.book.LoanBook;

public class LoanBookRepository extends HibernateGenericDAO<LoanBook> {

	private static final long serialVersionUID = -974922262777534569L;

	public LoanBookRepository() {
		super(LoanBook.class);
	}

	// @SuppressWarnings(LoanBookRepository.UNCHECKED)
	// public List<LoanBook> allLoanForUser(final User user) {
	// final DetachedCriteria criteria = DetachedCriteria
	// .forClass(LoanBook.class);
	// criteria.add(Restrictions.eq("user", user));
	// criteria.add(Restrictions.eq("refun", false));
	// return this.getHibernateTemplate().findByCriteria(criteria);
	// }

}
